export const leftList = [
  {
    title: '上级补助资金',
    dataNum: [
      {
        url: require('@/assets/images/fullscreen/xmgs0.png'),
        num: 329,
        title: '项目个数'
      },
      // {
      //   url: require('@/assets/images/fullscreen/xmgs1.png'),
      //   num: 116,
      //   title: '文件个数'
      // },
      {
        url: require('@/assets/images/fullscreen/xmgs2.png'),
        num: 117398.62,
        title: '资金总量(万元)'
      }
    ],
    dataRate: [
      {
        title: '下达率',
        rate: '88%',
        value: 88
      },
      {
        title: '执行率',
        rate: '51%',
        value: 51
      }
    ]
  },
  {
    title: '补助下级',
    dataNum: [
      {
        url: require('@/assets/images/fullscreen/xmgs0.png'),
        num: 183,
        title: '项目个数'
      },
      // {
      //   url: require('@/assets/images/fullscreen/xmgs1.png'),
      //   num: 341,
      //   title: '文件个数'
      // },
      {
        url: require('@/assets/images/fullscreen/xmgs2.png'),
        num: 124230.97,
        title: '资金总量(万元)'
      }
    ],
    dataRate: [
      {
        title: '下达率',
        rate: '91.3%',
        value: 91.3
      },
      {
        title: '执行率',
        rate: '68.74%',
        value: 68.74
      }
    ]
  }
];

export const leftTable = {
  title: '项目资金监管台账',
  data: {
    header: ['单位', '监管数', '支付数', '风险个数'],
    data: [
      ['越城区', '0', '0', '0'],
      ['柯桥区', '90', '4197.09', '4'],
      ['上虞区', '0', '0', '0'],
      ['诸暨市', '0', '0', '0'],
      ['嵊州市', '0', '0', '0'],
      ['新昌县', '0', '0', '0'],
    ],
    // 表头背景色
    headerBGC: '#306494',
    columnWidth: [200,200, 200,200],
    rowNum:7
  }
};

export const rightTable = {
  title: '乡镇风险分类',
  data: {
    header: ['项目', '风险总数', '低/中/高', '整改率'],
    data: [
      ['越城区', '0', '0/0/0', '0'],
      ['柯桥区', '4', '2/2/0', '100%'],
      ['上虞区', '0', '0/0/0', '0'],
      ['诸暨市', '0', '0/0/0', '0'],
      ['嵊州市', '0', '0/0/0', '0'],
      ['新昌县', '0', '0/0/0', '0'],
    ],
    // 表头背景色
    headerBGC: '#306494',
    //  表格行数,默认5行
    rowNum: 6,
    //  表头高度,默认35
    headerHeight: 40
  }
};

export const rightEcharts = {
  title: '风险分布情况',
  options: {
    tooltip: {
      trigger: 'item'
    },
    legend: {
      // 图例布局: 垂直
      orient: 'vertical',
      // 图例图标的位置
      align: 'left',
      textStyle: {
        // 图例文字的样式
        color: '#fff',
        fontSize: 12
      },
      // 图例位置
      x: 'right',
      y: 'bottom',
      // 图标
      icon: 'circle'
      // backgroundColor: '#fff'
    },
    series: [
      {
        type: 'pie',
        // 饼图的占面积
        radius: '60%',
        center: ['40%', '50%'],
        data: [
          { value: 21, name: '低风险' },
          { value: 73, name: '中风险' },
          { value: 58, name: '高风险' },
        ],
        label: {
          show: true,
          position: 'inner',
          formatter: function(params) {
            return params.value;
          },
          textStyle: {
            color: '#fff',
            fontSize: 14
          }
        },
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: '#fff'
          }
        }
      }
    ]
  }
};
